package com.neouton.crm.managerRefundRecords.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.common.util.PageUtil;
import com.neouton.crm.managerPayRecord.entity.ManagerPayRecord;
import com.neouton.crm.refundRecords.entity.RefundRecordsVO;
import com.neouton.crm.payRecords.entity.PaymentRecords;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ManagerRefundRecordsService {

    int saveOrUpdateCustomer(RefundRecordsVO refundRecords, String token);

    PageUtil<RefundRecordsVO> getRedListByPage(IPage<RefundRecordsVO> page, RefundRecordsVO refundRecords, String orderBy, String token);

    void exportRef(HttpServletResponse response, RefundRecordsVO refundRecords, String token) throws Exception;

    Double getPayMoneySum(RefundRecordsVO refundRecords, String token);

    List<ManagerPayRecord> getPayRecords();

    Boolean deleteRefund(Integer refundId,String token);

    RefundRecordsVO getRefundInfoByApprovalId(Integer approvalId, String token);

    Boolean approveRefundRecords(RefundRecordsVO refundRecords,String token,Boolean auto);

    Boolean rejectionRefundRecords(RefundRecordsVO refundRecords, String token);
}
